package com.zhang.demo.spring.bean;

import java.util.StringJoiner;

public class UserInfo {
    private String email;

    private String phone;

    private String qqNumber;

    private UserAttr userAttr;

    public UserInfo(String email, String phone, String qqNumber, UserAttr userAttr) {
        this.email = email;
        this.phone = phone;
        this.qqNumber = qqNumber;
        this.userAttr = userAttr;
    }

    public UserInfo(String email, String phone, String qqNumber) {
        this.email = email;
        this.phone = phone;
        this.qqNumber = qqNumber;
    }

    public UserInfo() {
    }

    public UserAttr getUserAttr() {
        return userAttr;
    }

    public void setUserAttr(UserAttr userAttr) {
        this.userAttr = userAttr;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getQqNumber() {
        return qqNumber;
    }

    public void setQqNumber(String qqNumber) {
        this.qqNumber = qqNumber;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", UserInfo.class.getSimpleName() + "[", "]")
                .add("email='" + email + "'")
                .add("phone='" + phone + "'")
                .add("qqNumber='" + qqNumber + "'")
                .add("userAttr=" + userAttr)
                .toString();
    }
}
